home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 61
/
Volume 61 - JOGO DISK .iso
/
Games
/
lamb-chop-drop.swf
/
scripts
/
frame_2
/
DoAction.as
Wrap
Text File
|
2008-03-17
|
1KB
|
43 lines
function formatAsPounds(amount)
{
if(isNaN(amount))
{
return "£0.00";
}
amount = Math.round(amount * 100) / 100;
var _loc6_ = String(amount);
var _loc3_ = _loc6_.split(".");
if(_loc3_[1] == undefined)
{
_loc3_[1] = "00";
}
if(_loc3_[1].length == 1)
{
_loc3_[1] += "0";
}
var _loc4_ = new Array();
var _loc2_ = undefined;
var _loc1_ = _loc3_[0].length;
while(_loc1_ > 0)
{
_loc2_ = Math.max(_loc1_ - 3,0);
_loc4_.unshift(_loc3_[0].slice(_loc2_,_loc1_));
_loc1_ = _loc2_;
}
_loc3_[0] = _loc4_.join(",");
return "£" + _loc3_.join(".");
}
_global.musicStart_snd = new Sound();
musicStart_snd.attachSound("musicstart1.wav");
_global.music_snd = new Sound();
music_snd.attachSound("music.wav");
_global.endMusic_snd = new Sound();
endMusic_snd.attachSound("endMusic.wav");
_global.collect_snd = new Sound();
collect_snd.attachSound("collectSound1.mp3");
_global.bonus_snd = new Sound();
bonus_snd.attachSound("bonusSound.wav");
_global.ring_snd = new Sound();
ring_snd.attachSound("collectRing.wav");
stop();